var labels = document.getElementById('vote').getElementsByTagName('label');
var radios = document.getElementById('vote').getElementsByTagName('input');
var i,j,k,l;
//性别单选按钮
for(i=0,j=labels.length ; i<j ; i++) {
    labels[i].onclick = function () {
        if (this.className == '') {
            for (k = 0, l = labels.length; k < l; k++) {
                labels[k].className = '';
                radios[k].checked = false;
            }
            this.className = 'checked';     
            try {
                document.getElementById(this.name).checked = true;
            } catch (e){

            }
        }
    }
};